13. GitOps Operation
13.1 GitOps Principles
The IX25 Helm chart can be managed declaratively through GitOps. Use GitOps for long-lived environments where configuration should be reviewed, versioned, and reconciled automatically.
Recommended principles:
-
store chart version and values in Git
-
avoid direct helm upgrade changes in GitOps-managed environments
-
keep secrets out of plain Git
-
use repeatable values layering
-
separate shared values from environment-specific overrides
-
validate rendered manifests before merge
13.2 Values Layering Strategy
Recommended repository structure:
gitops/
base/
ix25-values.yaml
envs/
dev/
ix25-values.yaml
prod/
ix25-values.yaml
Example shared values:
global:
imagePullSecrets:
- quay-pull-secret
ingress:
tls:
secretName: ix25-tls
observability:
mode: collector
collector:
existingConfigMap: ix25-otel-collector
Example production overlay:
global:
baseDomain: ix25.example.com
postgres:
enabled: false
external:
host: postgresql.example.internal
port: 5432
database: intrexx
existingSecret: postgres-auth
13.3 Secret Management in GitOps
Use one of these approaches:
-
pre-create Secrets outside GitOps and reference them with existingSecret
-
use SOPS, Sealed Secrets, External Secrets, or a platform-approved equivalent
-
store only non-sensitive values in plain Git
Do not commit production credentials into values files.
13.4 FluxCD Example
Example FluxCD OCIRepository and HelmRelease using the public OCI chart:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: ix25-chart
namespace: flux-system
spec:
interval: 10m
url: oci://registry-1.docker.io/intrexx/ix25-helm-deployment
ref:
tag: 1.12.7
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: ix25
namespace: ix25
spec:
interval: 10m
chartRef:
kind: OCIRepository
name: ix25-chart
namespace: flux-system
valuesFrom:
- kind: ConfigMap
name: ix25-values
install:
createNamespace: true
upgrade:
remediation:
retries: 3
Store the referenced values ConfigMap in the same GitOps workflow, or replace valuesFrom with inline values if that better matches your Flux setup.
13.5 ArgoCD Example
Example ArgoCD Application:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ix25
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: ix25
sources:
- repoURL: registry-1.docker.io/intrexx
chart: ix25-helm-deployment
targetRevision: 1.12.7
helm:
valueFiles:
- $values/gitops/base/ix25-values.yaml
- $values/gitops/envs/prod/ix25-values.yaml
- repoURL: https://git.example.com/platform/ix25-config.git
targetRevision: main
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Review pruning behavior carefully for stateful resources.
13.6 GitOps-Safe Operational Guidance
For GitOps-managed IX25:
-
make changes through Git commits
-
review risky changes before merge
-
create backups before dependency, Secret, persistence, or ingress changes
-
avoid manual drift in the cluster
-
document emergency rollback procedures
The Studio CLI initializer is a completed Job with a configured TTL. Manifest-level self-healing can recreate the Job after Kubernetes removes it. With ArgoCD or a similar controller, exclude the completed initializer from self-healing or commit components.studioBackend.cliInit.enabled=false after verifying success. Re-enable it deliberately when a later CLI image must apply new initialization data. With Flux HelmRelease reconciliation, verify that the Job is not rerun unexpectedly at each reconciliation interval.
13.7 Rollback in GitOps Environments
Rollback usually means reverting the Git change and allowing the controller to reconcile. If persistent data was changed or damaged, use backup restore procedures instead of relying only on configuration rollback.
13.8 Validation Before Merge
Recommended validation:
helm lint oci://registry-1.docker.io/intrexx/ix25-helm-deployment \
--version 1.12.7
helm template ix25 \
oci://registry-1.docker.io/intrexx/ix25-helm-deployment \
--version 1.12.7 \
--namespace ix25 \
-f ./gitops/base/ix25-values.yaml \
-f ./gitops/envs/prod/ix25-values.yaml
Also verify:
-
referenced Secrets and ConfigMaps exist or are managed
-
image tags are approved
-
TLS Secret names are correct
-
external dependency addresses are reachable
-
optional endpoints are intentionally exposed
-
the Studio CLI initialization policy is intentional and its image is approved
13.9 Controller-Specific Notes
FluxCD is a good default for straightforward Helm reconciliation and compact operations. ArgoCD is also suitable where the platform already standardizes on it. In both cases, keep values layering simple and predictable.